package top.whq6.study.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import top.whq6.study.dao.ClazzDao;
import top.whq6.study.entity.Clazz;
import top.whq6.study.service.ClazzService;

public class ClazzServiceImpl implements ClazzService {

  @Autowired
  ClazzDao clazzDao;

  @Override
  public void add(Clazz s) {
    clazzDao.addClass(s);
  }

  @Override
  public void del(int id) {
    clazzDao.delClass(id);
  }

  @Override
  public void modify(Clazz s) {
    clazzDao.modClass(s);
  }
}
